﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="PaymentSrhForm.aspx.cs" Inherits="App_Input_PaymentSrhForm" Title="入住收费" %>
<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<%@ Import Namespace="Shpm.App.Input.Bean" %>
<%@ Import Namespace="Shpm.App.Commons.Utils" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="PanelNavigate" runat="server" />

    <cc1:ComValidator ID="ComValidator1" runat="server"
                        Visible="False" CheckItems-Capacity="4">
        <cc1:CheckLongAttribute Code="E0036" ControlToValidator="txtSaleProcId">
            <cc1:ComAbsParamsAttribute Parameter="销售编号" />
        </cc1:CheckLongAttribute>
        <cc1:CheckLongAttribute Code="E0036" ControlToValidator="txtContractId">
            <cc1:ComAbsParamsAttribute Parameter="合同编号" />
        </cc1:CheckLongAttribute>
    </cc1:ComValidator>
   <table width="80%">
      <tr>
        <td>
            <table class="table_border_line">
                <tr>
			    <td align="left" colspan="4">
			    <script language="javascript">
                                        (new TitleBar('SearchBar', '检索条件')).showBar();
                            </script>
			    </td>						
		      </tr>				
            </table>
		    <table class="table_border_line"  style="background:ffffff">
		      <tr>
			    <td style="width:90px">&nbsp;</td>
			    <td style="width:120px;" align="left">销售编号</td>
			    <td align="left">&nbsp;<asp:TextBox ID="txtSaleProcId" runat="server" cssClass="default" MaxLength="8" Width="180"/></td>
			    <td align="right">&nbsp;</td>						
		      </tr>	

		      <tr>
			    <td style="width:90px">&nbsp;</td>
			    <td style="width:120px;" align="left">员工编号</td>
			    <td align="left">&nbsp;<asp:TextBox ID="txtEmployeeId" runat="server" cssClass="default" MaxLength="4" Width="180"/></td>
			    <td align="right">&nbsp;</td>						
		      </tr>			
              
		      <tr>
			    <td style="width:90px">&nbsp;</td>
			    <td style="width:120px;" align="left">客户姓名</td>
			    <td align="left">&nbsp;<asp:TextBox ID="txtRelationName" runat="server" cssClass="default" MaxLength="20" Width="180"/></td>
			    <td align="right">&nbsp;</td>						
		      </tr>	
		      
              <tr>
			    <td style="width:90px">&nbsp;</td>
			    <td style="width:120px;" align="left">会员姓名</td>
			    <td align="left">&nbsp;<asp:TextBox ID="txtNameC" runat="server" cssClass="default" MaxLength="20" Width="180"/></td>
			    <td align="right">&nbsp;</td>						
		      </tr>	
		      
              <tr>
			    <td style="width:90px">&nbsp;</td>
			    <td style="width:120px;" align="left">合同编号</td>
			    <td align="left">&nbsp;<asp:TextBox ID="txtContractId" runat="server" cssClass="default" MaxLength="4" Width="180"/></td>
			    <td align="right">&nbsp;</td>						
		      </tr>	
		      
              <tr>
			    <td style="width:90px">&nbsp;</td>
			    <td style="width:120px;" align="left">收费状态</td>
			    <td align="left">&nbsp;<asp:DropDownList ID="ddlPayStatus" runat="server" DataTextField="Content" DataValueField="DictNo"/></td>
			    <td align="right">&nbsp;</td>						
		      </tr>	
            </table>	
            
	    </td>
	    <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center">
            <asp:Button ID="btnSearch" runat="server" Text="检 索" cssClass="button1" OnClick="btnSearch_Click" Width="68px"/>
        </td>
        <td>&nbsp;</td>
      </tr>
    </table>
    
    <br/>
    
    <table id="tblResult" width="80%" runat="server">
        <tr>
            <th align="left"   style="text-align: left;">
            <script language="javascript">
                                        (new TitleBar('SearchBar1', '检索结果')).showBar();
                            </script>
                 </th>
        </tr>
        <tr>
            <td >
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
        CssClass="GridView_table"
        AllowPaging="True" DataKeyNames="SaleProcId" PageSize="10" EnableViewState="False" OnRowCommand="GridView1_RowCommand" OnPageIndexChanging="GridView1_PageIndexChanging" 
    >
        <Columns>
            <asp:BoundField DataField="SaleProcId" HeaderText="销售编号" >
                <ItemStyle CssClass="GridView_item_center" />
                <HeaderStyle CssClass="GridView_head_grayblue" />
            </asp:BoundField>
            <asp:BoundField DataField="EmployeeName" HeaderText="员工姓名" >
                <ItemStyle CssClass="GridView_item_center" />
                <HeaderStyle CssClass="GridView_head_grayblue" />
            </asp:BoundField>
            <asp:BoundField DataField="RelationName" HeaderText="客户姓名" >
                <ItemStyle CssClass="GridView_item_center" />
                <HeaderStyle CssClass="GridView_head_grayblue" />
            </asp:BoundField>
            <asp:BoundField DataField="MemberNo" HeaderText="会员编号">
                <ItemStyle CssClass="GridView_item_center" />
                <HeaderStyle CssClass="GridView_head_grayblue" />
            </asp:BoundField>
            <asp:BoundField HeaderText="会员姓名" DataField="NameC" >
                <ItemStyle CssClass="GridView_item_center" />
                <HeaderStyle CssClass="GridView_head_grayblue" />
            </asp:BoundField>
            <asp:BoundField DataField="ContractID" HeaderText="合同编号">
                <ItemStyle CssClass="GridView_item_center" />
                <HeaderStyle CssClass="GridView_head_grayblue" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="收费状态">
                <ItemStyle CssClass="GridView_item_center" />
                <HeaderStyle CssClass="GridView_head_grayblue" />
                <ItemTemplate>
                <%# (((PaymentBean)Container.DataItem).StatusText == null) ? "--" : ((PaymentBean)Container.DataItem).StatusText%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="收费日期">
                <ItemStyle CssClass="GridView_item_center" />
                <HeaderStyle CssClass="GridView_head_grayblue" />
                <ItemTemplate>
                <%# (((PaymentBean)Container.DataItem).PayDate == null) ? "--" : DateUtils.convertToString(((PaymentBean)Container.DataItem).PayDate.Value)%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:ButtonField ButtonType="Image" CommandName="details" HeaderText="详细" Text="详细"
                ImageUrl="~/images/info.gif">
                <ItemStyle CssClass="GridView_item_center" />
                <HeaderStyle CssClass="GridView_head_grayblue" />
            </asp:ButtonField>
        </Columns>
        <PagerStyle CssClass="list_data_bg" HorizontalAlign="Right" />

    </asp:GridView>    
    </td>
        </tr>
        <tr>
            <td ></td>
        </tr>
    </table>

</asp:Content>

